<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>附录-vim分屏操作 | 课程介绍</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    
    <link rel="prev" href="../02day/section.5.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.7"
        data-chapter-title="附录-vim分屏操作"
        data-filepath="02day/section.6.md"
        data-basepath=".."
        data-revision="Thu Aug 11 2016 08:15:36 GMT+0800 (CST)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        课程介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="01day/index.html">
            
                
                    <a href="../01day/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        Linux、命令
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="01day/section.1.html">
            
                
                    <a href="../01day/section.1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        认识Linux
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="01day/section.1.1.html">
            
                
                    <a href="../01day/section.1.1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        Linux的不同版本以及应用领域
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="01day/section.2.html">
            
                
                    <a href="../01day/section.2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        文件和目录
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="01day/section.3.html">
            
                
                    <a href="../01day/section.3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        Linux命令概述
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="01day/section.3.1.html">
            
                
                    <a href="../01day/section.3.1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        Linux命令-文件、磁盘管理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="01day/section.3.2.html">
            
                
                    <a href="../01day/section.3.2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        Linux命令-用户、权限管理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="01day/section.3.3.html">
            
                
                    <a href="../01day/section.3.3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        Linux命令-系统管理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="01day/section.3.4.html">
            
                
                    <a href="../01day/section.3.4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        Linux命令-练习
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="02day/index.html">
            
                
                    <a href="../02day/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        编辑器、服务器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="02day/section.1.html">
            
                
                    <a href="../02day/section.1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        gedit编辑器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="02day/section.1.1.html">
            
                
                    <a href="../02day/section.1.1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        sublime编辑器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="02day/section.2.html">
            
                
                    <a href="../02day/section.2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        编辑器之神-vim
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="02day/section.3.html">
            
                
                    <a href="../02day/section.3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        ubuntu软件安装与卸载方法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="02day/section.4.html">
            
                
                    <a href="../02day/section.4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        Linux常用服务器构建-ftp服务器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="02day/section.5.html">
            
                
                    <a href="../02day/section.5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        Linux常用服务器构建-ssh和scp
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.7" data-path="02day/section.6.html">
            
                
                    <a href="../02day/section.6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        附录-vim分屏操作
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >课程介绍</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x9644;&#x5F55;vim&#x5206;&#x5C4F;&#x64CD;&#x4F5C;">&#x9644;&#x5F55;-vim&#x5206;&#x5C4F;&#x64CD;&#x4F5C;</h1>
<h2 id="vim&#x5206;&#x5C4F;&#x64CD;&#x4F5C;">vim&#x5206;&#x5C4F;&#x64CD;&#x4F5C;</h2>
<p>&#x5206;&#x5C4F;&#x64CD;&#x4F5C;:</p>
<pre><code>sp: &#x4E0A;&#x4E0B;&#x5206;&#x5C4F;,&#x540E;&#x53EF;&#x8DDF;&#x6587;&#x4EF6;&#x540D; 

vsp: &#x5DE6;&#x53F3;&#x5206;&#x5C4F;,&#x540E;&#x53EF;&#x8DDF;&#x6587;&#x4EF6;&#x540D;

Ctr+w+w: &#x5728;&#x591A;&#x4E2A;&#x7A97;&#x53E3;&#x5207;&#x6362;
</code></pre><p>&#x542F;&#x52A8;&#x5206;&#x5C4F;:</p>
<p>1.&#x4F7F;&#x7528;&#x5927;&#x5199;O&#x53C2;&#x6570;&#x8FDB;&#x884C;&#x5782;&#x76F4;&#x5206;&#x5C4F;</p>
<pre><code>$ vim -On file1 file2 ...
</code></pre><p>2.&#x4F7F;&#x7528;&#x5C0F;&#x5199;o&#x53C2;&#x6570;&#x8FDB;&#x884C;&#x6C34;&#x5E73;&#x5206;&#x5C4F;</p>
<pre><code>$ vim -on file1 file2 ...
</code></pre><p>&#x6CE8;: n&#x662F;&#x6570;&#x5B57;&#xFF0C;&#x8868;&#x793A;&#x5206;&#x5C4F;&#x7684;&#x6570;&#x91CF;,n&#x8981;&#x5927;&#x4E8E;&#x7B49;&#x4E8E;&#x6587;&#x4EF6;&#x4E2A;&#x6570;</p>
<p>&#x5173;&#x95ED;&#x5206;&#x5C4F;</p>
<p>1.&#x5173;&#x95ED;&#x5F53;&#x524D;&#x7A97;&#x53E3;</p>
<pre><code>ctrl+w c
</code></pre><p>2.&#x5173;&#x95ED;&#x5F53;&#x524D;&#x7A97;&#x53E3;&#xFF0C;&#x5982;&#x679C;&#x53EA;&#x5269;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#xFF0C;&#x5219;&#x9000;&#x51FA;vim</p>
<pre><code>ctrl+w q
</code></pre><p>&#x7F16;&#x8F91;&#x4E2D;&#x5206;&#x5C4F;</p>
<p>1.&#x4E0A;&#x4E0B;&#x5206;&#x5272;&#x5F53;&#x524D;&#x6253;&#x5F00;&#x7684;&#x6587;&#x4EF6;</p>
<pre><code>ctrl+w s
</code></pre><p>2.&#x4E0A;&#x4E0B;&#x5206;&#x5272;&#xFF0C;&#x5E76;&#x6253;&#x5F00;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x6587;&#x4EF6;</p>
<pre><code>:sp filename
</code></pre><p>3.&#x5DE6;&#x53F3;&#x5206;&#x5272;&#x5F53;&#x524D;&#x6253;&#x5F00;&#x7684;&#x6587;&#x4EF6;</p>
<pre><code>ctrl+w v
</code></pre><p>4.&#x5DE6;&#x53F3;&#x5206;&#x5272;&#xFF0C;&#x5E76;&#x6253;&#x5F00;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x6587;&#x4EF6;</p>
<pre><code>:vsp filename
</code></pre><p>&#x5206;&#x5C4F;&#x7F16;&#x8F91;&#x4E2D;&#x5149;&#x6807;&#x7684;&#x79FB;&#x52A8;</p>
<p>vi&#x4E2D;&#x7684;&#x5149;&#x6807;&#x952E;&#x662F;h,j,k,l,&#x8981;&#x5728;&#x5404;&#x4E2A;&#x5C4F;&#x4E4B;&#x95F4;&#x5207;&#x6362;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x5148;&#x6309;&#x4E00;&#x4E0B;ctrl+w</p>
<p>1.&#x628A;&#x5149;&#x6807;&#x79FB;&#x52A8;&#x5230;&#x4E0A;&#x8FB9;&#x7684;&#x5C4F;</p>
<pre><code>ctrl+w k
</code></pre><p>2.&#x628A;&#x5149;&#x6807;&#x79FB;&#x52A8;&#x5230;&#x4E0B;&#x8FB9;&#x7684;&#x5C4F;</p>
<pre><code>ctrl+w j
</code></pre><p>3.&#x628A;&#x5149;&#x6807;&#x79FB;&#x52A8;&#x5230;&#x53F3;&#x8FB9;&#x7684;&#x5C4F;</p>
<pre><code>ctrl+w l
</code></pre><p>4.&#x628A;&#x5149;&#x6807;&#x79FB;&#x52A8;&#x5230;&#x5DE6;&#x8FB9;&#x7684;&#x5C4F;</p>
<pre><code>ctrl+w h
</code></pre><p>5.&#x628A;&#x5149;&#x6807;&#x79FB;&#x52A8;&#x5230;&#x4E0B;&#x4E00;&#x4E2A;&#x7684;&#x5C4F;</p>
<pre><code>ctrl+w w
</code></pre><p>&#x79FB;&#x52A8;&#x5206;&#x5C4F;</p>
<p>1.&#x5411;&#x4E0A;&#x79FB;&#x52A8;</p>
<pre><code>ctrl+w K
</code></pre><p>2.&#x5411;&#x4E0B;&#x79FB;&#x52A8;</p>
<pre><code>ctrl+w J
</code></pre><p>3.&#x5411;&#x53F3;&#x79FB;&#x52A8;</p>
<pre><code>ctrl+w L
</code></pre><p>4.&#x5411;&#x5DE6;&#x79FB;&#x52A8;</p>
<pre><code>ctrl+w H
</code></pre><p>&#x5C4F;&#x5E55;&#x5C3A;&#x5BF8;</p>
<p>1.&#x589E;&#x52A0;&#x9AD8;&#x5EA6;</p>
<pre><code>ctrl+w +
</code></pre><p>2.&#x51CF;&#x5C11;&#x9AD8;&#x5EA6;</p>
<pre><code>ctrl+w -
</code></pre><p>3.&#x8BA9;&#x6240;&#x6709;&#x5C4F;&#x7684;&#x9AD8;&#x5EA6;&#x4E00;&#x81F4;</p>
<pre><code>ctrl+w =
</code></pre><p>4.&#x5DE6;&#x52A0;&#x5BBD;&#x5EA6;</p>
<pre><code>ctrl+w &gt;
</code></pre><p>5.&#x53F3;&#x52A0;&#x5BBD;&#x5EA6;</p>
<pre><code>ctrl+w &lt;
</code></pre><p>6.&#x53F3;&#x589E;&#x52A0;n&#x5BBD; (&#x5982;&#xFF1A;n=30)</p>
<pre><code>ctrl+w n &lt;
</code></pre><h2 id="vim&#x6253;&#x9020;ide">vim&#x6253;&#x9020;IDE</h2>
<h3 id="&#x7B80;&#x6D01;&#x7248;ide">&#x7B80;&#x6D01;&#x7248;IDE</h3>
<pre><code>C+p: &#x751F;&#x6210;tags
C+]: &#x8DF3;&#x8F6C;&#x5230;&#x51FD;&#x6570;&#x5B9A;&#x4E49;
C+t&#xFF1A;&#x4ECE;&#x51FD;&#x6570;&#x5B9A;&#x4E49;&#x8FD4;&#x56DE;

C+o&#xFF1A;&#x5728;&#x5DE6;&#x4FA7;&#x6253;&#x5F00;&#x6587;&#x4EF6;&#x5217;&#x8868;
F4:  &#x5728;&#x53F3;&#x4FA7;&#x6253;&#x5F00;&#x51FD;&#x6570;&#x5217;&#x8868;

C+n&#xFF1A;&#x8865;&#x9F50;&#x51FD;&#x6570;&#xFF0C;&#x5411;&#x4E0B;&#x7FFB;
</code></pre><p>vimrc&#x662F;vim&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x4FEE;&#x6539;&#x4E24;&#x4E2A;&#x4F4D;&#x7F6E;</p>
<pre><code>1. /etc/vim/vimrc

2.~/.vimrc

~/.vimrc&#x4F18;&#x5148;&#x7EA7;&#x9AD8;
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../02day/section.5.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: Linux常用服务器构建-ssh和scp"><i class="fa fa-angle-left"></i></a>
        
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
